Changed condition to interate 100 times.

1000 was a mistake. No idea why I did that.