“ 18 . None of the said cases detract from the position that once a charge-sheet is filed within the stipulated time, the question of grant of default bail or statutory bail does not arise. As indicated hereinabove, in our view, the filing of chargesheet is sufficient compliance with the provisions of Section 167(2)(a)(ii) in this case. Whether cognizance is taken or not is not material as far as Section 167, Cr.P.C. is concerned. The right which may have accrued to the Petitioner, had charge-sheet not been filed, is not attracted to the facts of this case. Merely because sanction had not been obtained to prosecute the accused and to proceed to the stage of Section 309 CrPC, it cannot be said that the accused is entitled to grant of statutory bail, as envisaged in Section 167 CrPC The scheme of the CrPC is such that once the investigation stage is completed, the Court proceeds to the next stage, which is the taking of cognizance and trial. An accused has to remain in custody of some court. During the period of investigation, the accused is under the custody of the Magistrate before whom he or she is first produced. During that stage, under Section 167(2) CrPC, the Magistrate is vested with authority to remand the accused to custody, both police custody and or judicial custody, for 15 days at a time, up to a maximum period of 60 days in cases of offences punishable for less than 10 years and 90 days where the offences are punishable for over 10 years or even death sentence. In the event, an investigating authority fails to file the charge-sheet within the stipulated period, the accused is entitled to be released on statutory bail. In such a situation, the accused continues to remain in the custody of the Magistrate till such time as cognizance is taken by the Court trying the offence, when the said Court assumes custody of the accused for purposes of remand during the trial in terms of Section 309 CrPC. The two stages are different, but one follows the other so as to maintain a continuity of the custody of the accused with a court.