Before a Magistrate authorises detention under Section 167 Cr.P.C