Added a hash code API