Performed cross-validation