Added comment for idCounter.