Some edits to GLM2 grid search