Cleanup and documentation.
Cleanup and documentation.
Cleanup and documentation.
Prevent endless recursion in FatalError() in case of problems with the template engine.