Add key generation.