Islamabad and Doha's role in US-Iran deal