Added generation counter