Add support for different hash types