Parse while reading from serial port