Work on ref set and grid.