Id scanner and some predicate methods in Scanner