Fixed issue with running checkForPage multiple times for each algorithm.