The expensive infrastructure works led to the city becoming bankrupt in 1817 during the Post-Napoleonic depression, an economic downturn immediately after the Napoleonic Wars; but the city's prosperity later recovered. The increasing economic importance of Aberdeen and the development of the shipbuilding and fishing industries led to the construction of the present harbour including Victoria Dock and the South Breakwater, and the extension of the North Pier. Gas street lighting arrived in 1824 and an enhanced water supply appeared in 1830 when water was pumped from the Dee to a reservoir in Union Place. An underground sewer system replaced open sewers in 1865. The city was incorporated in 1891. Although Old Aberdeen has a separate history and still holds its ancient charter, it is no longer officially independent. It is an integral part of the city, as is Woodside and the Royal Burgh of Torry to the south of the River Dee.