at first , he was ambivalent about doing so , for there was of course something very pleasant in such feelings , but he soon perceived that the frustration of unsatisfied arousal , which constantly distracted him , and which sometimes even turned into excruciating physical pain ( especially if he did not get the problem well in hand fairly quickly ) , far outweighed the pleasure , and he tried to distract himself with other thoughts .