Add profile to cdr
Add recording of agent_state