Improve support for the hashed datastructure and add debug flag for the compiler.