Added the ability to invert chained statements