section 522(3)


522(3) If the judge does not order that the accused be detained in custody under subsection (2), the judge may order that the accused be released on giving an undertaking or entering into a recognizance described in any of paragraphs 515(2)(a) to (e) with such conditions described in subsections 515(4), (4.1) and (4.2) as the judge considers desirable.