He was elected fellow of the Royal Society in 1813. In 1815 he returned to Edinburgh to take personal superintendence of his business, and while there (1821) he was instrumental in founding the Edinburgh School of Arts 101 the instruction of mechanics, and he was one of the founders of the Edinburgh Academy. In 1827 he was invited to London to become warden of London University (now University College London), an office which he held for four years; he then resided at Bonn for two years and pursued the study of minerals and rocks, communicating to the Geological Society on his return a paper on the "Geology of the Environs of Bonn", and another "On the Quantity of Solid Matter suspended in the Water of the Rhine".