Added code for 3D testing and benchmarking