Change Mesh to be of pointer type