Enable log queries and change query to _query on line 822