Implemented the "schedual by dependency" part of UI