Added the characteristic polynomial as a special invariant.