Hypothesis on how to reduce a couple of queries. Might not work.