Use querystring to create params.

Also, remove the useless function that doesn't return anything