Error guard.
Filename to use/include name functions.
Made GENERATE_DISPATCH safer.