 On 20 April 1792 he graduated M.D.from King's College, Aberdeen.As a student of medicine, he became interested in the theories on animal magnetism of Anton Mesmer, joining Mesmer's "Harmonic Philosophical School", and later also theosophy.