New checking function