Changing paginate() to be called through the Paginator component to reflect the changes in the core