Automatically restart router

Hello,
is it possible to make mikrotik router restart if it fails to ping its gateway?

/system watchdog set watch-address=ip.address.goes.here

I accidently setup netwatch to ping google every 10mins and reboot if it cannot ping this address but forgot to apply a time delay on router reboot ( :delay 3m ) before the netwatch would run & ended up with a reboot loop , had to take down effected routers and do a reset ?

Using my example above, this is not a concern as Watchdog has a built in delay setting which defaults to 5 minutes if not specified.