Begin COM port code.