Merged 2D/3D coarsening. 3D not working yet.
Bug fixing