Restructure log