Add each class to duration.