Made some changes for h-adaptivity -- cem