Added simulation for use with circuit.jar