Better way to use the port.