Add watchdog timer keep_alive code.