Implement Ola's suggestion for local table of contents