Made the API global.