Process split between agent and hub (currently in restapi)