Moved API key authorization to the module.