Add invert option to allow checking if a value is less than a threshold