Able to use mw object in preferences window.