Add query method.