Change spin loop to a sleep loop.

```python
while True:
    pass
```