Added periodic/oneshot timers.