Added worksheet header and footer code.