Hamilton Grammar before graduating Edinburgh University in 1989. After studying for a PhD at Manchester University and working as a NATO post-doctoral fellow at the Southwestern Medical Centre in Dallas, Texas, he spent 23 years as an academic at the University of St Andrews.