Added syntax to make sure duplicate items don't appear when text files are uploaded.