Âupdate to reflect changes to agent in core, Agent reference now LocalAgent reference etc.