Add total residual