Refactored header and footer.