Added support for setInterval()