Added watchdog timer