Refactored the excel format for cleaner, more readable code.