Add support for custom hashing methods