Added templating for TOC