Put back the setImmediate