Dependent jobs problem