Settings control passed to agent
Updated agent to manage settings