Updated 3D test script. Seems to work?