-Wrote more checking functions.