added support for an interval timer.