Restructures files.