Use setImmediate if possible