Handling multiple keys mapping to same id. Assigning a different id to multiple occurrences.