Added api key generation