Adding the grid controller