#136 changed loop to sleep occasionally