Section 428T of the Principal Act is amended—
(a) by inserting in paragraphs (1) (a) and (b) “or mentally ill” after “dysfunctional”;
(b) by inserting in subsection (2) “or mentally ill” after “dysfunctional”; and
(c) by adding at the end the following subsection:
“(4) If the relevant court orders a person who is found by the tribunal to be mentally dysfunctional or mentally ill to be sentenced to a period of imprisonment, the court shall not order the person to be imprisoned for a period greater than any period of imprisonment to which the person could have been sentenced, but for that finding.”.