"Global" variables chnaged to "locals"