Switch ordering to avoid having async.setImmediate be undefined.