Enhanced query so that the result can be ordered and limited. Introduced the class Identifier.java