Changed grid refinement API.