Add output and input