compromise was wise; Webster used an old map that showed British claims were legitimate. The British had a different old map that showed the American claims were legitimate, so both sides thought the other had the better case. The final border between the two countries was established with the Webster–Ashburton Treaty of 1842, which gave Maine most of the disputed area, and gave the British a militarily vital connection between its provinces of Canada (present-day Quebec and Ontario) and New Brunswick. The passion of the Aroostook War signaled the increasing role lumbering and logging were playing in the Maine economy, particularly in the central and eastern sections of the state. Bangor arose as a lumbering boom-town in the 1830s, and a potential demographic and political rival to Portland. Bangor became for a time the largest lumber port in the world, and the site of furious land speculation that extended up the Penobscot River valley and beyond. Industrialization Industrialization in 19th century Maine took a number of forms, depending on the region and period. The river valleys, particularly the Androscroggin, Kennebec and Penobscot, became virtual conveyor belts for the making of lumber beginning in the 1820s-30s. Logging crews penetrated deep into the Maine woods in search of pine (and later spruce) and floated it down to sawmills gathered at waterfalls. The lumber was then shipped from ports such as Bangor, Ellsworth and Cherryfield all over the world. Partly because of the lumber industry's need for transportation, and partly due to the prevalence of wood and carpenters along a very long coastline, shipbuilding became an important industry in Maine's coastal towns. The Maine merchant marine was huge in proportion to the state's population, and ships and crews from communities such as Bath, Brewer, and Belfast could be found all over the world. The building of very large wooden sailing ships continued in some places into the early 20th century. Cotton textile mills migrated to Maine from Massachusetts beginning in the 1820s. The major site for cotton textile manufacturing was Lewiston on the Androscoggin River, the most northerly of the Waltham-Lowell system towns (factory towns modeled on Lowell, Massachusetts). The twin cities of Biddeford and Saco, as well as Augusta, Waterville, and Brunswick also became important textile manufacturing communities. These mills were established on waterfalls and amidst farming communities as they initially relied on the labor of farm-girls engaged on short-term contracts. In