Implemented watchdog timer