Upgrade and include public key