Correct paging iteration with the help of Paul and Dave