Changed setImmediate to process.nextTick. Forgot there is no setImmediate in 0.8.21