Added cap to full pagination functionality