Add hyperparameter optimization.