New: Add support for setInterval and setImmediate