Thoughts and pain