Moved unique hash algorithm to better place.