Made changes to the pagination in getUsers()