Refactored file responses