Added query interface.