Switched to setImmediate for node 0.10.x