refactored automatic scheduler to use a chained planning variable to increase efficiency