Add -c option to agent