Changes variables to local