Updating the grid