Changed how beta_agent and beta communicate