Refactored FILE formatting