In the more highly developed religions there are five elements, which, though they often occur together, are quite distinct and should not be confused: orthodoxy, or correct belief; piety, or emotional response to the deity or the doctrines or the ritual or any two or all three; mysticism, or the sense of God's immediate presence; asceticism, or denial of the animal appetites; and ethics, or good human relations. It is essential to keep the distinctions in mind when dealing with the work of Catholic writers, most especially that of Joyce, for Joyce's exasperated awareness of them was one of the impelling motives of his work. For Catholics, “sin” is a generic term covering unorthodoxy, impiety, indulgence of the animal appetites, and bad human relations; in the lay mind the distinctions among them are liable to become blurred, with resulting confusion in the conduct of life. One of the purposes of the medieval manuals of the virtues and vices, such as Ayenbite of Inwyt, Piers Plowman, and Handlyng Synne, was to remind laymen of the distinctions and the hierarchy among sins as well as of their generic sinfulness. Ulysses too is, among other things, such a manual; one of its principal themes is Handling Sin, as this is achieved by Dedalus and Bloom, each in his own way; Ulysses accordingly adapts the material of Ayenbite somewhat as it does that of The Odyssey.