Added io.wait() to src/main.cpp