Adding toctree handling