Add agent and remove agent up and running