Implement retring queries.