Added a comment for main_loop