Addition and modification of codes