Clear up the Arduino code