Hooks up API