Support for dependent schedules

Fixes #317