Fixing page numbers, permalinks and making the TOC functional at the moment by the way.