Initial implementation of watchdog