Mask updates, merging, and local maxima