The second function of shamatha is calming. When we have a strong emotion, we know it can be dangerous to act, but we don’t have the strength or clarity to refrain. We have to learn the art of breathing in and out, stopping our activities, and calming our emotions.