Rename local functions in processes to avoid name collisions