The canal's military purpose was to provide a secure route between Montreal and Kingston on Lake Ontario, bypassing a particularly vulnerable stretch of the St. Lawrence River bordering the state of New York that had left re-supply ships bound for southwestern Ontario easily exposed to enemy fire during the War of 1812. Colonel By set up military barracks on the site of today's Parliament Hill. He also laid out the streets of the town and created two distinct neighbourhoods named "Upper Town" west of the canal and "Lower Town" east of the canal. Similar to its Upper Canada and Lower Canada namesakes, historically "Upper Town" was predominantly English speaking and Protestant whereas "Lower Town" was predominantly French, Irish and Catholic. Bytown's population grew to 1,000 as the Rideau Canal was being completed in 1832. Bytown encountered some impassioned and violent times in her early pioneer period that included Irish labour unrest that attributed to the Shiners' War from 1835 to 1845 and political dissension evident from the 1849 Stony Monday Riot. In 1855, Bytown was renamed ''Ottawa'' and incorporated as a city. William Pittman Lett was installed as the first city clerk, guiding it through 36 years of development.