HevMain: Export main_loop.