Changed hash code method.