Adding table of content functionality.