During the War of Independence, the Royal Irish Constabulary retreated to barracks, and petty sessions could not be held in most of the country. A system of Dáil Courts was set up by the First Dáil to replace them. A Dáil parish court exercised summary jurisdiction in IRA-controlled areas. After the outbreak of the Irish Civil War, however, the Provisional Government decided to "revert" to the British courts, pending the report of a commission headed by Lord Glenavy on what would replace them. It decided, however, immediately to make changes to summary jurisdiction by dismissing all remaining resident magistrates and terminating the commissions of justices of the peace, many of whom had resigned anyway. It then proceeded to appoint 27 new resident magistrates who would sit alone without justices of the peace, giving them the title of district justices. The District Justices (Temporary Provisions) Act 1923 changed the name of petty sessions to district courts and confirmed the appointment of the existing district justices. The Dáil parish courts were wound-up separately.