Add code segment