Updated 3DPipe Function.