Add a global switch for the API