Added in setting the type of a card.