Move global vars s and sum into tasks as local vars
Merge pull request #1 from dimhold/master

Move global vars s and sum into tasks as local vars