Added LOD logic for grid