Some changes in IDGenerator.