- Added parameters argument to allow user control over the recursive grid search.