Don't leak variable 'r' into global namespace