Refactored file flags