Organizing peripheral codes