Some error checking for CV.