Modified so that the file can correctly archive file in last month.