Segment merging under control