Updated UserLocal Registry handling logic