Fixed up inputs, outputs and configuration.