Switching function updated.