Added the agent config code. Still need to tie in what the agent needs to know.