Fixing bug in SolveEquation() method. Now it accept additional parameter 'index'