Added freshName function to make local variables more readable