Implemented paging in categories.