 In 1987 Pakistan and Iran signed an agreement on civil nuclear energy cooperation, with Zia-Ul-Haq personally visiting Iran as part of its "Atoms for Peace" program.Internationally, Zia calculated that this cooperation with Iran was purely a "civil matter", necessary for maintaining good relations with Tehran.According to IAEA, Iran wanted to purchase fuel-cycle technology from Pakistan, but was rebuffed.