Added Document.Type and Document.FriendlyType