Generate the correct file.