Implement blocking I/O
Profiling revealed busy-waiting