Adds the beginnings of TH code for discovery.
Trieswq to get the fields generating.