More work on trie system