Now also supports NOT, AND, NAND, OR, NOR and MUX2to1