Provided implementation for comparisons.