Changed set_profile_var to overwrite existing vars, instead of just adding the same value again