Add OrGate code