Add selectDuplicate command