Added the watchdog timer to prevent Arduino lockups. Removed debug traces