Realised I didn't need the checkMissingValues function, so removed it