Update the timing of mode switching

Parameters which defines when the DESPATCH mode switches are updated.
Renamed "mode" to "phase"

DESPATCH “mode” is renamed to DESPATCH “phase”.