We can probably improve the interface for stuff like this (appendQueryParams), I'll have a think.