Sentence:  And I had hardly finished my business in the toilet on the aforementioned occasion when the lights in that place , like the hall lights <WSD>controlled</WSD> from the switch in the office , flicked off and on impatiently . 
Meaning of the word marked with <WSD> tags:  handle and cause to function