Sentence:  But we must never forget , most of the appropriate heroes and their legends were created overnight , to answer immediate needs , almost always with conscious aims and <WSD>ends</WSD> . 
Meaning of the word marked with <WSD> tags:  the state of affairs that a plan is intended to achieve and that (when achieved) terminates behavior intended to achieve it