Apparatus and methods are described, including an expandable structure and one or more sets of electrodes disposed on the surface of the expandable structure. Each one of the sets comprises an ablating electrode, and at least one sensing electrode that is electrically isolated from the ablating electrode. The sensing electrode is contained within the ablating electrode. Other embodiments are also described.