Add type field