Add output code segment