Added query method