EM needs to be in a dedicated thread