Almost have the circuit working