Moved keypair up.