Add equality methods.