Changing serial port structure