Added convenient methods for finding the selected port.