More query interface implementation.