Add changing mode support.