Don't know why that code sleeps

Seems to work without it.