Added Sub chk functions