Separated Forest dependence from main program and added FindBestParameters.