Completely changed the way the time is checked. Now much more compact and
user friendly.