Add guard around skeleton code for classifiers as well.