Modified api call to use node style callback.