Implemented Criteria queries.