private void Stop()
    {
        // if LogList is populated and we have a connection
        if (LogList.Count > 0 && DataAnalytics.GetConnectedState())
        {
            // For each element in LogList, send a request to DataAnalytics for Log Sending
            foreach (string temp in LogList)
            {
                DataAnalytics.AddLog(temp);
            }
        }

        // Else if LogList is populated and we do not have a connection
        else if (LogList.Count > 0 && DataAnalyticsStructure.GetConnectedState())
        {
            // For each element in LogList, send a request to LogLoader for Local Saving
            foreach (string temp in LogList)
            {
                LogLoader.WriteLogLocal(filePath, temp);
            }

            // Clear LogList
            LogList.Clear();
        }
    }