[EM] added EM code for Scenario 0 and 3M