Fixed "tightloop" causing 100% CPU usage.