Added argument maximization to grids