Add queryParams to support "last"