Added compare modes.
Added compareModes