Extend the approach described in #172 and clone the scheduler every time we proceed to a new iteration of the `repeat` loop (see #172 for more details).