Added option to not generate new file if newer than a specified number of days.