Added a way to generate private and public keys.