Add outputs/inputs. Add tests for outputs.