Updated for process.nextTick change.