Implemented repeat selection.