Added code that should stop the script from dying after the 5/6 hour
lockout