Updated for merge and selection.