Grid controller.