Adds underscores to variable names where appropriate