private void TestThread()
    {
        try
        {
            int i = 0;
            while(true)
            {
                i++;
                System.out.println("Iteration: " + i);
                Thread.sleep(1000);
                
                if(test)
                    System.out.println("TEST!!!!!!!!!!!!!!!!!!!");
                
                if(i > 20)
                    break;
            }
        }
        catch(Exception e)
        {
            System.out.println("TEST THREAD: " + e);
        }
    }