Added auto-TOC feature