Implemented selection.