Implemented the and on search criteria.