The pagination method is now working