Added the addQueryParameters method.