Added generic hash function pointer