How could this be changed so it can handle 2 or more logically different grids?