Added invert method