Update calculate_hashes_grid.m