Adjusted ports to the circuit scheme.