Improve the bulk operation of attaching terms.