Changed stop condition to find more perfect stripes