Some fine tuning, allow more than one resource class to be used