Implemented support for toc generation