The mode switching logic was updated.