Added maximum area option for refinement