 Additionally, official patronage and financial support for madrassas during the Zia years allowed the JUI to build thousands of madrassas, especially in the NWFP (now KPK), which were instrumental in the formation of the Taliban.At the same time the JUI was distrustful of Zia's close ties with the Jamaat-e-Islami and joined the anti-Zia and PPP-led Movement for the Restoration of Democracy (MRD).Following the death of Mufti Mehmood Ahmed in 1980s, This dual relationship with Zia's regime eventually led to a split in the party which came to be divided into the JUI-F, headed by Maulana Fazal-ur-Rehman and the JUI-S headed by Samiul Haq, who supported Zia and was a member in his parliament, the Majlis-e-Shura.