Separate gist from previous. Extracts query string values