Added adjustment to use setImmediate in Node 0.10 over process.nextTick