Add rehash() and toString()