Replaced "honestPageCount" with functionality that will stop page generation before elements repeat. This is a desirable option in cases where page selection controls are used instead of prev/next.