Changes to input and output files