Use TrieMap rather than normal mutable map