changed must_reset/raise_interval logic to the simpler repeat_interval logic