Interval inversion added and tested.