Added a function to change the serial port while running