Attaching inputs and outputs