The main algorithm of ALS, which is invoked when actual cardiac arrest has been established, relies on the monitoring of the electrical activity of the heart on a cardiac monitor. Depending on the type of cardiac arrhythmia, defibrillation is applied, and medication is administered. Oxygen is administered and endotracheal intubation may be attempted to secure the airway.