Added checks on the download side to prevent over-downloading pages
Fixed logic behind downloaded checks