Detailed Instructions: In this task, you're given passages that contain mentions of names of people, places, or things. Some of these mentions refer to the same person, place, or thing. Your job is to write questions that evaluate one's understanding of such references. Good questions are expected to link pronouns (she, her, him, his, their, etc.) or other mentions to people, places, or things to which they may refer. Do not ask questions that can be answered correctly without understanding the paragraph or having multiple answers. Avoid questions that do not link phrases referring to the same entity. For each of your questions, the answer should be one or more phrases in the paragraph, and it should be unambiguous.
Problem:Passage: A janitor is seen cleaning in a laboratory and interrupting a scientist as he asks to clean the floors of the area he is working in. The scientist agrees and retreats to the hallway to a vending machine. The janitor accidentally knocks off a life monitor attached to a man, in his attempt to revive the man he gives chest compresses but his hands rip through the flesh as the man awakens and attacks the janitor. Moments later the janitor attacks the scientist in the hallway.
Solution:
What was the janitor doing just before he attacked the scientist?