Added CheckFunction