Rouhani has been also deputy speaker of the 4th and 5th terms of the Islamic Consultative Assembly (Majlis) and secretary of the Supreme National Security Council from 1989 to 2005. In the later capacity, he was also heading Iran's former nuclear negotiating team and was the country's top negotiator with the EU three – UK, France, and Germany – on Iran's nuclear program.