Adding a ruby script to remove duplicates