Adding invert operation