Added QC function to test for missing values