Now writes flags to arduino board using serialport