Restructures application