Restructure file.