Fix ing so that they are inverted

Also add user defined var for invert level