Potentially how QueryHandler could work