Handling duplicate data