Further speed-up measures (deactivation of the last mode, always results -1).