Clean up, add header and footer.