Added support for generated files.