Add 3D functionality