Group existing lines into a new function called set_grid_to_zero