Reset log on each iteration