Updated Interval algorithm