Refactored fileheader