Added resetUpgrades() in Upgrades.