 In 1727 he married; his wife died in 1750.From 1740 to 1742 he lectured in experimental philosophy in Edinburgh.The 1745 Jacobite Rising brought him to take arms for the government for four years, and he was a volunteer at the Battle of Prestonpans.