He also contributed to negotiations leading to the Anglo-American Convention of 1818, which defined the border between British North America and the United States from Lake of the Woods (see Northwest Angle) to the Pacific Ocean.