Added delays to prevent 100% CPU usage