Adding flx mode.