Add query method