Changes to prevent infinite loop if dictionary.txt has a dupe