Added divert strategy function