Made small improvements to rehashing exercise.