Made the new grid feature backward compatible with the old way of
representing the grid.