Added type to Element TextGen.