Added watchdog and finish condition to encoders