Added texturegroups and primitives