he later served in the scottish executive as deputy minister for enterprise and lifelong learning (1999 to 2000), then as deputy minister for education, europe and external affairs (2000 to 2001), and as deputy minister for education and young people (2001 to 2003).