Added usage example for handleDuplicates