Updating invert to return hex so it will work with legacy code.
Updating invert to return hex to work with legacy code.