Cleaned up some output logic for Collections
Updated processing logic to perform duplication only if duplicates exist