Working I think

Still need to test with more input files and schedules