Replacing static queryString definition with a dynamic generated version.