Added query-based operations.