Add little generation tracking hack.