Update get logic, get while hasNextPage != null.