Adjusted to query repeatable intervals.