Handles multi-selection.