Adding control Trie implementation