Added hashCode methods.