Added option to add subgrid or subgrid_as_grid