Added support for other hash lengths