 The skeptic interpretation is supported by the medieval historian Al-Qifti (ca.1172–1248), who in his "The History of Learned Men" reports that Omar's poems were only outwardly in the Sufi style, but were written with an anti-religious agenda.He also mentions that Khayyam was indicted for impiety and went on a pilgrimage to avoid punishment.