Added code for sending commands to arduino.