Added setImmediate compatibility