Added ability to vary responses based on query string