Sentence:  What in the name of God was he <WSD>doing</WSD> , crouched in a timbered pit on the wrong bank of the river ? 
Meaning of the word marked with <WSD> tags:  engage in