Removed LoopCounter because it decreases performance.