Added missing hashCode/ equals methods.