Also store logged queries in internal array