Don't hardcode the grid size