Add ability to set a custom hash function if needed.