Historically Leith was governed by the Town Council of Edinburgh, with separately organised baillies appointed by various bodies without contact with each other. The result became very unsatisfactory, and half of Leith was provided with no municipal government whatever or any local magistrates. An 1827 Act of Parliament arranged for municipal government and administration of justice in the town, providing watching, paving, cleansing, and lighting, with Edinburgh Council responding to the views of Leith townspeople. In 1833 the Burgh Reform Act made Leith a Parliamentary Burgh, which jointly with Portobello and Musselburgh was represented by one member of Parliament. On 1 November 1833, Leith became a separate Municipal Burgh, with its own provost, magistrates, and council, and was no longer run by bailies. Historically the Lord Provost of Edinburgh was virtue officii Admiral of the Firth of Forth, the Provost of Leith was Admiral of the port, and his four bailies were admirals-depute.