Added check to stop running when an already-scraped page is reached.