Experimental set_query_params and get_query_params issue

I found a solution to my problems which includes some functionality for setting values which I think deserves its own thread.