Added four new functions related to validity of data