Added key pair generation