Added method query.