Add input lines
Add output lines
Fix data-id's being wrong for in/out lines