Rewritten QueryParams class