Added AND gate behavior.