Added check for n_estimators.