private async void Initialize()
        {
            try
            {
                BackgroundTaskHelper.RegisterIfNotRegistered();
            }

            catch (Exception ex)
            {
                Error = "Failed to register background task: " + ex.ToString();
                return;
            }

            var picLibrary = await StorageLibrary.GetLibraryAsync(KnownLibraryId.Pictures);

            string        path   = picLibrary.SaveFolder.Path;
            string        name   = "ZLog.csv";
            StorageFolder folder = KnownFolders.PicturesLibrary;
            var           tRes   = folder.TryGetItemAsync(name);
            await Task.Delay(1000);

            var outputFile = tRes.GetResults();

            if (outputFile is null == false)
            {
                StorageFolder storage  = KnownFolders.PicturesLibrary;
                StorageFile   zlogFile = await storage.GetFileAsync(name);

                await zlogFile.DeleteAsync();

                await Task.Delay(1000);

                await storage.CreateFileAsync(name, CreationCollisionOption.OpenIfExists);

                await Task.Delay(1000);
            }



            try
            {
                _listener = UserNotificationListener.Current;

                // Check listener status
                var accessStatus = await _listener.RequestAccessAsync();

                switch (accessStatus)
                {
                case UserNotificationListenerAccessStatus.Allowed:
                    // Good, continue through
                    break;

                case UserNotificationListenerAccessStatus.Denied:
                    Error = "Listener permission has been denied. Please go to your settings and allow listener access for this app, then close and re-launch this app.";
                    return;

                default:
                    Error = "Please close and re-open this app. Listener permission hasn't been allowed or denied yet.";
                    return;
                }
            }

            catch (Exception ex)
            {
                Error = "Failed requesting access to Listener: " + ex.ToString();
                return;
            }

            UpdateNotifications();
        }