Adding public and private key works