Adds code to rename non-unique variable names