Refactoring of stress-test

repeat.counter