Changed XHR to async.