Adding resource limit to stop &gla when the number of remaining objects is less than R/2 during refinement.