 Graduating in 1846, he went St. Louis, Missouri, where he became a surveyor.During the Mexican–American War, he was quartermaster of the 1st Regiment Missouri Mounted Volunteers under Colonel Alexander William Doniphan.At the war's end, he returned home to New Hampshire but soon decided to go west.