Updated comparison to enable use as primary key