Updated where header/footer are dynamically entered.