A compound of formula I n n n n n n n n n n wherein A, X, Y, Z, R 1 and R 24 are described herein. The compounds are useful as inhibitors of potassium channel function and in the treatment and prevention of arrhythmia, I Kur -associated disorders, and other disorders mediated by ion channel function.