Shouldn't we just use the time boundary if to_time is non-zero? Otherwise I worry about not being able to remove a specific time stamp if it's at the end of a run we care about.