Add Query method