Add public query method.