I think Pakistan was not a factor in terms of decision India to obtain nuclear weapon. Because there was no talk of Pakistan having any capability. The main factor was China. And the international prestige that China was getting as a consequence of having its own nuclear weapons.