Added functions to initialize various structures for diagnostics: