Enabling customization of number of pages with default to 5.