Add type and mode property.