Converted to using LogicT for query results.