Added second circuit code