First pass at duplicate handling.