Since emp_act can sleep, to avoid runtimes you should put it last in this scope.