Add hashCode for equality comparison to work.