Added the agent configuration.
Setup the agent callbacks.