Arrhythmias occur when the electrical signals to the heart that coordinate heartbeats are not working properly.