Serial port code addition