GH-5 Write each wire's portIDs correctly