As to the 2 original Q's the engineers had trouble with....

not all EGC's or Delta's are created equal, there is no single boiler plate code reference......