Added mesh refinement.