I think SAS is on to something there - and I know there are some threads (like one in OMNI/Games) that have 5000+ pages to them, so maybe change that number at the end to something like 10,000, and it looks like that will guarantee you will get to the last page (or at least close).