Added support for modules that look at user mode