New version with atomic variables