Recognize when you're having negative thoughts and stop them.