Why Is My Thread Looping Underneath