setImmediate is not needed