A compound of formula (I), wherein A, R1, R3, and R24 are described herein. The compounds are useful as inhibitors of potassium channel function and in the treatment and prevention of arrhythmia, I -associated disorders, and other disorders mediated by ion channel function.