Made changes (and simplified) the pause on screensaver code.