Refactored file data handling. Nothing broken, apparently.