Restruct template