Changed iterations

Changed iterations to make it not lasts forever