Make TOC generator work