Thread-related things working (using empty while loop).  Next: getting
Queries for Reference Tree to match Queries for Query Set