Automatic mode switching (AMS) is now a programmable function in most contemporary dual chamber pacemakers. Atrial tachyarrhythmias are detected when the sensed atrial rate exceeds a "rate-cutoff," "running average," "sensor-based physiological" rate, or using "complex" detection algorithms. AMS algorithms differ in their atrial tachyarrhythmia detection method, sensitivity, and specificity and, thus, respond differently to atrial tachyarrhythmia in terms of speed to the AMS onset, rate stability of the response, and speed to resynchronize to sinus rhythm. AMS is hemodynamically beneficial, and most patients with atrial tachyarrhythmias are symptomatically better with an AMS algorithm in their pacemakers. New diagnostic capabilities of pacemaker especially stored electrograms not only allow programming of the AMS function, but enable quantification of atrial fibrillation burden that facilitate clinical management of patients with implantable devices who have concomitant atrial tachyarrhythmia.