Fix call to undefined functions.
Replace watchdog.