Fix checking functions CTB 9_29_13