Added support for success callbacks on asynchronous functions.