Added TOC generation