Factored out more headers and footers to includes.