Update the footnote code a bit - it's not working yet though.