Added Ballast.in_em_thread.