Added support for CUA mode.