Restructuration base code