Added support for setTimeout()