Added support for node and gate deletion