More detailed grid search