Added the grid for the boundary following