Changed iteration counter
Tweaked testing to try and find source of instability