Auto pagination. close #4.