Restruct codes.