Add entities, if any added to doc.