Edit: main_loop.py