Changed to receive "currentPage" data