EAP code generator