Added some footer generation code.