Auto-inversion added