Allow hash sizes up to 64 bit. And add some debugging.