Add CreateKeyPair (shameful but working code)