Replaced custom utility function with sequence equal