Section 164, of Cr.P.C deals with recording of statement before____________?

Section 164, of Cr.P.C deals with recording of statement before____________?

A. Any Magistrate
B. Magistrate U/S 30
C. Magistrate of 1st and 2nd class
D. None of above