Changes to make pagination RESTful