Call nextTick instead of setImmediate