The thoracic cage contains five muscle groups that act to change the volume of the thoracic cavity during respiration. The three groups of intercostal muscles (external, internal, and innermost) run between the ribs and have actions that include elevating or depressing the ribs. The transversus thoracis muscles depress the ribs weakly, while the subcostals share the actions of the internal intercostals in elevating or depressing the ribs. Some other muscles attach to but do not comprise the thoracic wall, such as the pectorals and scalenes.