Adds utility function set_interval and set_timeout