Added bestModelParameters function.