Replaced main_loop parsing with new parsing function call.