Add merging of intervals.