Added proper reference to api_key in the constructor.