Updates to the arduino code