How to let go of painful thought patterns.