Updated deterministic comparison