Here the watchdog example w/ the new API.