Insert tags now support flags (see #4717)