Sentence:  Nevertheless , for most of the population of heterogeneous advanced societies , though less for the less religious portion , religion does perform certain modal individual and social <WSD>functions</WSD> . 
Meaning of the word marked with <WSD> tags:  what something is used for