Added code to get query string into an array.