Refactor of invoke async.