Remove partial loop. Add method to get resource class label.