Added residuals for indices