Now checks for duplicate files in the list and won't add dupes.