Added check for file before building schedules