Fixed the code to the point that the files are being fully generated and scheduled. Need to check output for correctness