Finished 3D refinement - not tested yet.