Updated some 3D code to conform to the new version.