Change to how API key is accessed