Added query string debugging