nTray refactoring.
nKey refactoring.