currentPage and pageSize are unused variables.