Added default arguments for optimizeGrad routines