Of course, the first thing that occurred to him was to call for help.
At last, an idea occurred to my mind, I could cook a dinner for my father.
It was after he had found the pair he wanted that this occurred to him.