Fixes #14

"Program closes when detecting duplicates." is now fixed