Input file generation