Added comparison functions.