Prepaer work on agentcontroller to be grid independant