Set max times it gets the next page of results