Add custom digest function option.