Added beforeDrop function to click handler.
Improved rehashing exercise.