helper_thread: Rework the interval timer code