Improved generate_additional_files.py