Wrote preliminary schedule manager code