numberOfActiveGenerations static var is now @Synchronized.