Now correctly write 0/1 port names