Upgrade main