Change the condition for when the interval is cleared