Modify structure of files