Made TOC dynamic.