Cleaned getFileData