Changed how paging works in the API controllers.