Setting the maximum of pages to 30