Added option to auto-generate missing files