4. The new regime established by Div.6 of the Crimes Act requires the court to which the proceedings are referred to determine whether the person is or is not fit to be tried (s.20B(2)). If he or she is fit to be tried, the proceedings must be remitted to the magistrate and "proceedings for the commitment must be continued as soon as practicable" (s.20B(2)). If he or she is not fit to be tried the court must determine whether a prima facie case has been established (s.20B(3)). If no prima facie case is made out, or if a prima facie case is made out but the court is satisfied that punishment is inappropriate, the court must dismiss the charge and, if the person is in custody, order his or her release (s.20BA(1) and (2)). Otherwise, the court must determine whether the accused will become fit to be tried within 12 months following the finding of unfitness (s.20BA(4)). If he or she will become fit to be tried within 12 months, the court must determine whether he or she is suffering from a mental illness or condition for which treatment is available in a hospital and, if so, whether the person objects to being detained in a hospital (s.20BB(1)(a) and (b)), and must then order detention in hospital or in a place other than a hospital (including a prison) or grant bail, for a period ending when the person becomes fit to be tried or as soon as practicable after the expiration of 12 months (s.20BB(2)). If the accused becomes fit to be tried within 12 months, then proceedings, either for commitment or for trial of the charges, must be continued as soon as practicable (s.20BB(3)). If the accused does not become fit to be tried within that period, then he or she is treated as if there had been a finding that he or she would not become fit to be tried within 12 months (s.20BB(4)). Where it is found that a person will not become fit to be tried within 12 months, then the court must determine the same matters as required by s.20BB(1)(a) and (b) in the case of a person who will become fit to be tried within 12 months and must order that the person be detained in a hospital or a place other than a hospital (including a prison) for a period not exceeding the maximum period of imprisonment that could have been imposed had he or she been convicted of the offence charged (s.20BC(1) and (2)). Provision is made, in the case of a person whose detention has been ordered under s.20BC(2), for the variation of the place of detention (s.20BC(3) and (4)) and for the Attorney-General to review the person's condition and to consider whether the person should be released from detention (s.20BD).