I don't fully understand why you have to modify the input file?  It seems that it is completely untouched.