Added functionality for increasing the restart counter.