Agent fixed
Agent can be now added during runtime and the agent will automaticaly start.