Adjusting pagination