Use setImmediate instead of nextTick() per issue #5