Updated 3D Model loading code