Move global vars s and sum into tasks as local vars