There are times when pain is a good thing.