Adding has_links, has_attachments, and link terms