A Thread.Sleep(5) is needed, otherwise loop will go horribly fast and it will eat lots of processorpower.