An examining magistrate is a judge in an inquisitorial system of law who carries out pre-trial investigations into allegations of crime and in some cases makes a recommendation for prosecution. Also known as an investigating magistrate, inquisitorial magistrate, or investigating judge, the exact role and standing of examining magistrates varies by jurisdiction. Common duties and powers of the examining magistrate include overseeing ongoing criminal investigations, issuing search warrants, authorizing wiretaps, making decisions on pretrial detention, interrogating the accused person, questioning witnesses, examining evidence, as well as compiling a dossier of evidence in preparation for trial. Investigating judges in France have an important role in the French judiciary. They are also a feature of the Spanish, Dutch, Belgian and Greek criminal justice systems, although the extent of the examining magistrate's role has generally diminished over time. Since the late 20th and early 21st centuries, several countries, including Switzerland, Germany, Portugal, and Italy, have abolished the position of examining magistrate outright. In some cases, they have created new positions that take on some of these responsibilities. John Henry Merryman and Rogelio Pérez-Perdomo have described the examining magistrate's role in civil-law systems as follows: The typical criminal proceeding in the civil law world can be thought of as divided into three basic parts: the investigative phase, the examining phase (the instruction), and the trial. The investigative phase comes under the direction of the public prosecutor, who also participates actively in the examining phase, which is supervised by the examining judge. The examining phase is primarily written and is not public. The examining judge controls the nature and scope of this phase of the proceeding. The examining judge is expected to investigate the matter thoroughly and to prepare a complete written record so that by the time the examining stage is complete, all the relevant evidence is in the record.