Adding bidirectional ports