...the rules to determine where the code ends are somewhat convoluted.