Nonetheless, in May 1996, Rabbani and Hekmatyar finally formed a power-sharing government in which Hekmatyar was made prime minister. Rabbani was anxious to enhance the legitimacy of his government by enlisting the support of Pashtun leaders. However, the Mahipar agreement did not bring any such benefits to him as Hekmatyar had little grassroots support, but did have many adverse effects: it caused outrage among Jamiat supporters, and among the population of Kabul, who had endured Hekmatyar's attacks for the last four years. Moreover, the agreement was clearly not what the Pakistanis wanted, and convinced them of Hekmatyar's weakness, and that they should shift their aid entirely over to the Taliban. Hekmatyar took office on 26 June, and immediately started issuing severe decrees on women's dress, that struck a sharp contrast with the relatively liberal policy that Massoud had followed until then. The Taliban responded to the agreement with a further spate of rocket attacks on the capital. The Rabbani/Hekmatyar regime lasted only a few months before the Taliban took control of Kabul in September 1996. Many of the HIG local commanders joined the Taliban "both out of ideological sympathy and for reason of tribal solidarity." Those that did not were expelled by the Taliban. In Pakistan Hezb-e-Islami training camps "were taken over by the Taliban and handed over" to Jamiat Ulema-e-Islam (JUI) groups such as the Sipah-e-Sahaba Pakistan (SSP).