Changed numPerClass for NG