Implement query interface.