Adding a level counter.