Added check for missing files, as well as missing file generation.