Loop in standalone_example.cpp.