Added functionality to modify meshes