Generalized code, using statusAgent, we can connect lots of agents to it.