A method for mapping includes receiving electrical inputs measured by a probe at respective locations in a chamber of a heart of a subject. The electrical inputs are processed to identify complex fractionated electrograms. At each of the respective locations, a respective contact quality between the probe and a tissue in the chamber is measured. A map of the complex fractionated electrograms in the chamber is created using the electrical inputs and the measured contact quality.