Change way of checking equality.