Add handleQuery method to the AsyncQuerier struct