Added inlineCallbacks to API