In 2002 , he became Parliamentary Private Secretary to Home Office Minister Beverley Hughes and was later a junior minister at the Northern Ireland Office , Department for Trade and Industry and later at Defra - before being appointed special envoy in July 2007 .