Better TOC generation workflow.