Rework of getting groups and schedule