Setting upper limit on number of cleaning iterations [ci skip]