Made it so you can pick max row and col for grid.