Widely used frame validity and checking functions.