Moved resource loading code to mesh.