Add querystring functionality