What are two roles of magistrate judges