Added the parser for the serial port to read line.