Changed Trie a bit.