Added serial port functionality.