Added callbacks to async functions.