Changed checkForPage for Optimal