Finshed adding most of the inputs and outputs.