Improved pagination for NDL.