Changing the way the port is set