Changed segment comparison functions