Extract checking function