Add feature: use custimized hash function.