Update process.nextTick to setImmediate