Fixed EMP to work properly