Finding purpose in pain