Fix and tune watchdog.