Secretary of State Daniel Webster secretly funded a propaganda campaign that convinced Maine leaders that a 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.