Sentence:  It means to do it and to know one is doing it , but as only a secondary if certain effect of the good one primarily <WSD>does</WSD> and intends . 
Meaning of the word marked with <WSD> tags:  carry out or perform an action