Scheduling code complete except for unit tests.