He served as associate counsel to President Bush from 2001-2003, in which capacity he worked on many legal and policy issues, including authorization of the use of military commissions, detainee and anti-terrorism litigation, presidential action against terrorist financing, and the creation of the new Department of Homeland Security. He also contributed to judicial selection, responses to congressional oversight and investigations, and the USA Patriot Act.