Adapt to function with switch for the choice.
Modification for the backup function.