Adding groundwork of schedule auto-generation algorithm