Working on generation of schedule table