Support custom hash algorithm