Update main_loop.c