Added api key as a config variable