Regionalism had been a significant factor especially in the tradition of logic studied in al-Andalus; more generally, the crystallisation of traditions after Khûnajî also tended to be regional. Although Khûnajî was read in North Africa, it would seem that the Maragha logicians were not read there, at least not systematically. By contrast, Averroes was still read and taught in North Africa up to the end of the fourteenth century, and so Ibn Khaldûn would have been taught Averroes as well as a decoction of Khûnajî's logic; his teacher, Muhammad al-Sharîf al-Tilimsânî (d. 1370), had written a substantial commentary on a short work by Khûnajî, the Sentences (El-Rouayheb 2010b: 71–79).