Implemented Watchdog as a module.