Reused logic from estimators controller to properly handle our scheduler index. Hopefully.