Add subsection logic to TOC.