In October 2004, Lieutenant-General Ashfaq Kayani was appointed as the Director general of Directorate of Inter-Services Intelligence (ISI), in place of General Ehsan-ul-Haq, who was promoted as the Chairman of the Joint Chiefs of Staff Committee. General Kayani directed the ISI operations and her operatives during a bleak period, with widely spread insurgencies in North-West Pakistan and Balochistan, disclosing of the nuclear proliferation case, and waves of suicide attacks throughout Pakistan emanating from the northwestern tribal belt. In his final days at the ISI, he also led the talks with Benazir Bhutto for a possible power sharing deal with Musharraf. In October 2007, after three years, he was replaced at the ISI by Lt Gen Nadeem Taj.