Added grid generation by pulling from grid file