Added option for items per page (8, 16 or 32)