Working on the AStar controller.