Finished optimizing the grid.