Building the grid