Integrated a split to seperate grid and poly grids in seperate outputfiles