Testing broker ping. Added some code to parse query strings.