Added support for global.setImmediate