EDM Code Generator