Some work on serial port stuf