Added querys for search by criteria.