Updated anagram script.