Data QA checks and "addKEY" function.