Adjust log, success, error API for callback. Update extend function.