Added canUpgrade