Fixed onMode to correctly classify type,

Implemented onUserMode