Added query stats