Updated just before def parse_grid