(2) The Magistrate to whom an accused person is forwarded under this section may, whether he has or has not jurisdiction to try the case, from time to time authorise the detention of the accused in such custody as such Magistrate thinks fit, for a term not exceeding fifteen days in the whole; and if he has no jurisdiction to try the case or commit it for trial, and considers further detention unnecessary, he may order the accused to be forwarded to Magistrate having such jurisdiction: Provided that: (a) the Magistrate may authorise detention of the accused person, otherwise than in custody of the police, beyond the period of fifteen days if he is satisfied, that adequate grounds exist for doing so, but, no Magistrate shall authorise the detention of the accused person in custody under this section for a total period exceeding sixty days, and on the 543 expiry of the said period of sixty days, the accused person shall be released on bail; and every person released on bail under this section shall be deemed to be so released under the provisions of Chapter XXXIII for the purposes of the Chapter; (b) no Magistrate shall authorise detention in any custody under this section unless the accused is produced before him; (c) no Magistrate of the second class, not specially empowered in this behalf by the High Court, shall authorise detention in the custody of the police.