Implemented and tested ParsePort.