Fixing a bug where it increases iteration time as the number of iterations increased.