Comparing method.