update
Implemented better iteration for stability analysis