Added smex-mode.