Added flags for CV and probability calculation.