Handling the API key correctly