Add crossvalidation support.