Added temporary version of rehash().