Added parser and circuit implementations