Make Duplicate work with multiple selections