Problem with parallel execution: simultaneous updates to the same variable