Now tracks already visited pages to avoid infinite runs on faulty websites.