Handle query parameters.