In the Autumn of 1807 Gunn was assigned to a brigade tasked with provisioning more distant outposts, and travelled with them to Martin Falls and then on to the HBC outpost on the Red River at Pembina in modern North Dakota, a distance of more than 2900 kilometers .