Prime Minister Narendra Modi today held "substantive" talks with Iranian President Hassan Rouhani to boost cooperation in key areas of security, trade and energy, after which the two sides inked nine pacts, including one on double taxation avoidance.