Started on serial port logic