Implement equality.