Added a check before the main loop starts if all the pages are up to date

And if they aren't up to date we'll update them of course.

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>